<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/vue.min.js"></script>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>
<body>
<div id="app">
    <el-container>
        <el-header>页头</el-header>
        <el-container>
            <el-aside style="width: 100px">左侧栏</el-aside> <!-- 侧栏的默认宽度为300px -->
            <el-main>主体</el-main>
            <el-aside style="width: 100px">右侧栏</el-aside>
        </el-container>
        <el-footer>页脚</el-footer>
    </el-container>
    <hr>
    <el-container>
        <el-aside style="width: 100px">左侧栏</el-aside>
        <el-container>
            <el-header>页头</el-header>
            <el-main>主体</el-main>
            <el-footer>页脚</el-footer>
        </el-container>
    </el-container>
    <hr>
    <el-container>
        <el-header style="background-color: black">页头</el-header>
        <el-container style="height: 240px;">
            <el-aside style="width: 100px">侧边栏</el-aside>
            <el-container style="height: 100%;">
                <el-main>主体</el-main>
                <el-footer>页脚</el-footer>
            </el-container>
        </el-container>
    </el-container>
    <hr>
    <el-container>
        <el-container>
            <el-header>页头</el-header>
            <el-container>
                <el-aside style="width: 100px;">左侧栏</el-aside>
                <el-main>主体</el-main>
            </el-container>
            <el-footer>页尾</el-footer>
        </el-container>

    </el-container>
</div>
<script>
    var v= new Vue({
        el : "#app",
    })
</script>
</body>
<style>
    .el-container{
        height: 300px;
        width: 400px;
    }
    .el-header{
        background-color: #eee;
    }
    .el-footer{
        background-color: #ddd;
    }
    .el-aside{
        background-color: red;
    }
    .el-main{
        background-color: aqua;
    }
</style>
</html>

